package com.wing.warehouse.model.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.warehouse.model.entity.WarehouseShelfSpace;

/**
 * 仓库货架货位VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class WarehouseShelfSpaceVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;



    /**
     * 创建人
     */
    private Long creator;

    /**
     * 修改人
     */
    private Long modifier;

    /**
     * 编码
     */
    private String code;

    /**
     * 仓库id
     */
    private Long warehouseId;

    /**
     * 仓库库区id
     */
    private Long warehouseAreaId;

    /**
     * 货架id
     */
    private Long shelfId;

    /**
     * 状态
     */
    private WarehouseShelfSpace.Status status;

    /**
    * 状态描述
    */
    @TableField(exist = false)
    private String statusDesc;

    public String getStatusDesc() {
        return status.getDesc();
    }

    /**
     * 序号
     */
    private Integer sortNumber;

    /**
     * 备注描述
     */
    private String description;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 创建人
     */
    private String creatorName;

    private String warehouseName;

    private String warehouseAreaName;

    private String shelfName;

    /**
     * 包装数量
     */
    private Long labelQuantity;
    /**
     * 条码总数 （原始最小单位量）
     */
    private Long amountQuantity;
    /**
     * 仓库条码库存
     */
    private Long warehouseQuantity;

    /**
     * 货位号
     */
    private String spaceCode;

}
